[appkit plugin] [5/x] Add chat server plugin to @databricks/appkit-agent#387
Open
hubertzub-db wants to merge 11 commits intodatabricks:mainfrom
Open
[appkit plugin] [5/x] Add chat server plugin to @databricks/appkit-agent#387hubertzub-db wants to merge 11 commits intodatabricks:mainfrom
hubertzub-db wants to merge 11 commits intodatabricks:mainfrom
Conversation
This was referenced Mar 20, 2026
28f1384 to
2d61336
Compare
Move agent plugin source code into src/agent-plugin/ subfolder for better organization when hosting multiple plugins.
2d61336 to
fa5fffc
Compare
0a9a18e to
8a5755b
Compare
Signed-off-by: Hubert Zub <hubert.zub@databricks.com>
bceae2d to
2be31ff
Compare
Signed-off-by: Hubert Zub <hubert.zub@databricks.com>
Signed-off-by: Hubert Zub <hubert.zub@databricks.com>
Add per-package pnpm-lock.yaml and CI/release workflows with explicit pnpm version and cache-dependency-path.
Signed-off-by: Hubert Zub <hubert.zub@databricks.com>
2be31ff to
59b4915
Compare
hubertzub-db
commented
Mar 24, 2026
| @@ -0,0 +1,299 @@ | |||
| /** | |||
Author
There was a problem hiding this comment.
hubertzub-db
commented
Mar 24, 2026
| @@ -0,0 +1,28 @@ | |||
| import type { ChatRow } from "./schema"; | |||
Author
There was a problem hiding this comment.
hubertzub-db
commented
Mar 24, 2026
| @@ -0,0 +1,52 @@ | |||
| const MAX_ENTRIES = 10_000; | |||
|
|
|||
| function setBounded<K, V>(map: Map<K, V>, key: K, value: V): void { | |||
Author
There was a problem hiding this comment.
hubertzub-db
commented
Mar 24, 2026
|
|
||
| export type { ChatRow, MessageRow }; | ||
|
|
||
| export function createDb(pool: Pool) { |
Author
There was a problem hiding this comment.
note: reimplemented from https://github.com/databricks/app-templates/tree/main/e2e-chatbot-app-next/packages/db
1d83c9e to
61bf6ac
Compare
Signed-off-by: Hubert Zub <hubert.zub@databricks.com>
6cac4f3 to
b074ca7
Compare
8bccbd3 to
c469eda
Compare
Signed-off-by: Hubert Zub <hubert.zub@databricks.com>
c469eda to
c4d0cb8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🥞 Stacked PR
Summary
Adds a
ChatPluginto@databricks/appkit-agent, exported from the@databricks/appkit-agent/chatsubpath. The plugin provides a complete chat backend: streaming responses from agent or Databricks model serving endpoints, session management, optional PostgreSQL persistence, feedback via MLflow Traces, and stream resumption.Adapted from
app-templates/e2e-chatbot-app-next](https://github.com/databricks/app-templates/tree/main/e2e-chatbot-app-next), with@databricks/appkitas a peer dependency and a standalone auth module replacing internal imports.Usage
Demo of the chat with persistence and tools (the UI runs from existing
e2e-chatbot-app-next)Screen.Recording.2026-03-25.at.11.04.21.mov
What's included
ChatPluginclass extending AppKit'sPlugin<ChatConfig>, registered as"chat". Exposes achat()factory viatoPlugin()and wires 13 Express routes under/api/chat/.autoMigrateflag